package Deom7;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-19
 * Time: 22:44
 */
public class Test1 {
    public static void main(String[] args) {
        Animal animal = new Dog("旺财");
        animal.eat();
        animal.sleep();
        Animal animal1 = new Cat("小花");
    }
}
